package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RytestMapper;
import com.ruoyi.system.domain.Rytest;
import com.ruoyi.system.service.IRytestService;

/**
 * 测试3Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-27
 */
@Service
public class RytestServiceImpl implements IRytestService 
{
    @Autowired
    private RytestMapper rytestMapper;

    /**
     * 查询测试3
     * 
     * @param bmname 测试3主键
     * @return 测试3
     */
    @Override
    public Rytest selectRytestByBmname(String bmname)
    {
        return rytestMapper.selectRytestByBmname(bmname);
    }

    /**
     * 查询测试3列表
     * 
     * @param rytest 测试3
     * @return 测试3
     */
    @Override
    public List<Rytest> selectRytestList(Rytest rytest)
    {
        return rytestMapper.selectRytestList(rytest);
    }

    /**
     * 新增测试3
     * 
     * @param rytest 测试3
     * @return 结果
     */
    @Override
    public int insertRytest(Rytest rytest)
    {
        rytest.setCreateTime(DateUtils.getNowDate());
        return rytestMapper.insertRytest(rytest);
    }

    /**
     * 修改测试3
     * 
     * @param rytest 测试3
     * @return 结果
     */
    @Override
    public int updateRytest(Rytest rytest)
    {
        rytest.setUpdateTime(DateUtils.getNowDate());
        return rytestMapper.updateRytest(rytest);
    }

    /**
     * 批量删除测试3
     * 
     * @param bmnames 需要删除的测试3主键
     * @return 结果
     */
    @Override
    public int deleteRytestByBmnames(String[] bmnames)
    {
        return rytestMapper.deleteRytestByBmnames(bmnames);
    }

    /**
     * 删除测试3信息
     * 
     * @param bmname 测试3主键
     * @return 结果
     */
    @Override
    public int deleteRytestByBmname(String bmname)
    {
        return rytestMapper.deleteRytestByBmname(bmname);
    }
}
